package com.yiyi.credit.manage.abutment.common.enums;


public enum ResponseCode {

    SUCCESS("10000", true, "success"),

    REQUESTNO_REPEAT("9993", false, "请求流水号重复"),

    NOT_APPID("9994", false, "平台账号错误"),

    NO_RESULT_ERR("9995", false, "根据请求参数未能查询出相应结果数据"),

    PARAM_ERR("9996", false, "参数错误"),

    SIGN_ERR("9997", false, "签名错误"),

    SERVICE_ERR("9998", false, "服务器异常"),

    FATAL_ERROR("9999", false, "严重异常"),

    NO_USER_INFO("50507", false, "获取用户信息失败"),

    SUB_STATION_EXIST("505012", false, "对应站点已存在"),

    SUB_STATION_NO_EXIST("505013", false, "对应站点不存在"),

    EXIST_SUB_STATION_NO("505018", false, "站点编号已存在"),

    LOGIN_FIRST("50506", false, "登录过期，请重新登录");

    private String code;

    private boolean success;

    private String message;

    private ResponseCode(String code, boolean success, String message) {
        this.code = code;
        this.success = success;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public boolean isSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}